You can set up a ratio of minutes:miles, and then set it equal to your unknown ratio. Let x be the minutes to bike 7 miles.
12 minutes:2.5 miles = x minutes:7 miles
Ratios can also be written as fractions:
12/2.5 = x/7 ... Cross multiply and you'll get:
2.5x = 7*12
2.5x = 84 ... Divide both sides by 2.5 to get x by itself:
x = 84/2.5
x = 33.6 minutes