4 balls of wool = 1 cap
You want to find out how many balls of wool are needed for 6 caps.
Simply multiply the total number of caps you want with the number of balls of wool that takes to make one cap:
4 (balls of wool) x 6 (caps) = 24 balls of wool are needed to make 6 caps