The $40 is divided into 1 part for Justin + 3 parts for Joshua = 4 parts.

So each part is equal to $40/4 = $<<40/4=10>>10.

Therefore, Joshua's share is $10 x 3 = $<<10*3=30>>30.

# Answer

30
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
Joshua and Justin shared $40. Joshua’s share was thrice as much as Justin’s. How much is Joshua's share?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
30
Joshua and Justin shared $40. Joshua’s share was thrice as much as Justin’s. How much is Joshua's share?
train