PASCAL 2010 Problem 11

Several three-legged tables and four-legged tables have a total of 23 legs. If there is more than one table of each type, what is the number of three-legged tables?

Answer Choices
A. 6
B. 7
C. 3
D. 4
E. 5