Xiao Li's family used an average of x tons of water every quarter last year. How many tons of water did Xiao Li's family use last year?

Suppose the water price this year is X yuan /m3, then the water price last year is X/[ 1+ 1/3]=3X/4 yuan /m3.

Last year's water consumption was 15/[3X/4] cubic meters, and this year's water consumption was 15/[3X/4]+5 cubic meters.

15/(3X/4)+5=40/X

20/X+5=40/X

20+5X=40

5X=40-20

5X=20

X=4

The water consumption of Jia Xiaoli in June this year was 40/4= 10 cubic meter.