Luke and Joshua work at a dry cleaners ironing shirts. Luke can iron 35 shirts per hour, and Joshua can iron 25 shirts per hour. Luke worked 3 more hours than Joshua and they ironed 345 shirts between them. Determine the number of hours Luke worked and the number of hours Joshua worked.