We have a cube has 6 faces and we have to colour it with 6 different colours .
Then the no of ways of colouring ==720, but in this we will be getting many overcountings.
We have there are 24 ways in which we can orient a cube
Hence the number of distinct ways of colouring a cube with 6 different colours is
The equation of the line perpendicular to the given line is x - y + k = 0
Since it passes through the origin,
0 - 0 + k = 0
Therefore k = 0
Hence the equation of the line is x - y = 0
On solving these two equations we get x = 1 and y = 1
The point of intersection of these two lines is (1,1)
Hence the coordinates of the foot of the perpendicular is (1,1)