Find the equation of a line through B(5,2) which is perpendicular to the line 3x+5=0. Hence find the coordinate of the foot of the perpendicular from B to the line.​