Given the information on the problem, we have the following parallelogram:
since the perimeter is 34, we can write the following equation:

solving for x, we get:

now that we have that x = 6, we can find the measure of the sides:

therefore, x = 6 and the shorter side measures 5 units