The methods used in these two cases were identical.
Tips
memory
辙 is a wheel rut (track left in the ground). 如出一辙 = as if coming from the same wheel track - two things so alike they could have been made by the same wheel rolling through the same mud.