Each basket at the farm stand holds 3 pounds of potatoes or 6 pounds of tomatoes. If there are 21 pounds of potatoes and 6 pounds of tomatoes, how many baskets are needed?