It really doesn't matter if the shoes are the same length as long as they are the long ones & some brake shops particularly with bonded linings/shoes will return them that way....
The picture indicates they are both short & that is not good. It may also indicate 2 long ones on one side of the axle assy & 2 short on the other, that is bad.
Also it is good practice to chamfer off the ends of the new linings slightly so they are not square
I note that an oil seal is sitting on the spindle & if this one was not taken off, fitted to the hub properly with greased lip, but left like depicted, the hub may not be pulled right home, thus the bearings loose & that seal not in the hub fully or properly. If left like that you will possibly have a strange scraping noise.
John GIBBINS Member Institute of Automotive Mechanical Engineers [Ret], ASE Master Medium/Heavy Truck & Auto Technician USA -2002 Licensed Motor Mech NSW MVIC 49593 Current 2015
TO DIAGNOSE, TROUBLESHOOT OR FAULT FIND ANY AUTO SYSTEM....
Understand how system parts interact with one another. GOOD parts can then be established & the NOT GOOD problem/s part/s isolated for repair or replacement.