A painter is given the job of painting the doors of 5 adjacent bedrooms using 5 colours: red, blue, yellow, green and orange.
If the owner of the house insists that the doors should be painted with at most two colours, find the number of ways which the painter could have the job done.