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