Objective: how to find tyhe perimeter of a parellolgram

Which of the following solutions is more sound in terms of naive physics reasoning?

OPT:
A). Perimeter = add the length of all sides P = 2a + 2b
B). Perimeter = add the length of all sides plus the height P = 2a + 2b
A).