A golf driving range has small buckets of golf balls fir $6 each and medium buckets of golf balls for $8 each. One day, golfers use 27 small buckets and some medium buckets for a total cost of $626. What equation can I use to solve the number of medium buckets used?