Two neighbours have adjoining houses as shown below. The houses are fenced, with one side as common. If the cost of fencing is € 15.70 per metre, then what was the total cost of fencing both the houses?

A shopkeeper sells two qualities of sugar at the rates of €55 per kg. and €54 per kg, gaining 10% and 20% profit respectively. If he mixes the two variants in the ratio 3:2 and sells the mixture at €36 per kg., what is his gain or loss?