Each week, Harry is paid x dollars per hour for the first 30 hours and 1.5x dollars for each additional hour worked that week. Each week, James is paid x dollars per hour for the first 40 hours and 2x dollars for each additional hour worked that week. Last week James worked a total of 41 hours. If Harry and James were paid the same amount last week, how many hours did Harry work last week?