Logan and Sarah work at a dry cleaners ironing shirts. Logan can iron 40 shirts per hour, and Sarah can iron 35 shirts per hour. Logan and Sarah worked a combined 13 hours and ironed 490 shirts. Determine the number of hours Logan worked and the number of hours Sarah worked.