Let A and B represent the number of hours that plans A and B last, respectively. Then the problem statement tells you
7A +9B = 12
5A +3B = 6
There are many ways this set of equations can be solved. I find it fairly simple to use a graphing calculator. The one shown tells me the workouts are each 3/4 of an hour.
Plan A lasts 45 minutes (3/4 hour)
Plan B lasts 45 minutes (3/4 hour)