I was solving a banking problem when I had the following doubt. We have a mass m on a wedge having an angle A. We have to find the normal force acting on the block of mass m. I tried to decompose the force mg acting in downward direction into two components:one parallel to the direction of wedge and other in a perpendicular direction with respect to the wedge. It gave the following equation:- $$N=mgcosA$$ On the other hand if I decompose normal force into two components and I would get the following equation:- $$NcosA=mg$$ $$N=mgsecA$$
So which one is right?