This question was asked in Ex 10.2, 11
The formula you have written for finding coordinate of perpendicular and the value you have putted is another

NITIN PANDAY's image