Pac won both, by a nose. It took a guy with ATG skills 2 weight classes above ( and violation of the agreed catch weight) to dominate Marquez.
Marquez won the first fight by a point and Manny winning the second fight by a point. The fact that the 2 fights were so close is what makes the Pacquiao/Marquez rivalry great. You can have it both ways for both fight.