A carpenter makes legs for 3-legged stools and 4-legged tables. He makes a total of 57 legs.

He could have made legs for how many 3-legged stools?