Jim the trainer has two solo workout plans that he offers his clients: plan A and plan B. Each client does either one or the other (not both). On Wednesday there were 5 clients who did plan A and 3 who did plan B. On Thursday there were 2 clients who did plan A and 6 who did plan B. Jim trained his Wednesday clients for a total of 10 hours and his Thursday clients for a total of 10 hours. How long does each of the workout plans last?