Sydney and Riley work at a dry cleaners ironing shirts. Sydney can iron 15 shirts per hour, and Riley can iron 10 shirts per hour. Riley worked 5 more hours than Sydney and they ironed 150 shirts between them. Determine the number of hours Sydney worked and the number of hours Riley worked.