Jeremiah and Tristan work at a dry cleaners ironing shirts. Jeremiah can iron 35 shirts per hour, and Tristan can iron 20 shirts per hour. Jeremiah and Tristan worked a combined 17 hours and ironed 490 shirts. Determine the number of hours Jeremiah worked and the number of hours Tristan worked.