<human>:  Joshua and Justin shared $40. Joshua’s share was thrice as much as Justin’s. How much is Joshua's share?
<bot>: How many parts are there? ** The $40 is divided into 1 part for Justin + 3 parts for Joshua = 4 parts.
How much is each part? ** So each part is equal to $40/4 = $<<40/4=10>>10.
How much is Joshua's share? ** Therefore, Joshua's share is $10 x 3 = $<<10*3=30>>30.
#### 30