When 16 is subtracted from half of the number r, the result is at most 18.

Write this as an inequality and solve to find the possible values of r.​