Task: Question Answering
Input (English): Problem: each week , harry is paid x dollars per hour for the first 30 hours and 1.5 x dollars for each additional hour worked that week . each week , james is paid x dollars per hour for the first 40 hours and 2 x dollars for each additional hour worked that week . last week james worked a total of 50 hours . if harry and james were paid the same amount last week , how many hours did harry work last week ?
Output (English): 5