You will need four of each. Have lots of paper towels available.
"P" is plug on left and "PL" is on right in pic. "B" is for the bolt holding the ram in place.
This is a GREAT time to replace your four front ram hydraulic lines. Any Hydraulic shop can make them to length.
One option is to remove one line at a time for passenger ram and tie some sort of pull line to it for pulling new hose back into place. This way you can take lines with you to have length and fittings duplicated. The other method is to measure the lines get them made and have a double ended "union plug" like plug on left to connect new line to old line and pull thru into place.
These hoses are the cheapest JUNK available and the hoses on the front ram system get the most abuse. I guarantee you will have hose failure if you don't replace them. See pic below of whet they start looking like.
You will need four caps pictured before if replacing hoses. Honestly it's best to have a few of each on hand.