Logan bought 30 pounds of ground beef. He then cooks 12 pounds of it it for supper. The next day he cooks 17 pounds of the meat for lunch. How many pounds of ground beef does Logan has?