A horse was galloping at average speed of 50km/hr for the first 12 minutes. For the next x minutes, the horse slowed down and it’s average speed decreases to 30km/hr. The average speed of the horse for the whole journey is 45km/h. Find its total distance travelled in kilometres