First, they do not often work
Now how they are wired
Each 30 amp plug has 3 pins, A safety ground, A hot, and a Neutral
The 50 amp has 4 poins
The roundish pin in all cases is the safety ground,, These are all connected together.
on the 50 the TOP (opposite the round one) is the Neutral, And one of the pins on the 30 (forget which side w/o checking) and these are connected together.. See note:
The sides of the 50.. Connect to one, or the ohter (but not both) of the 30 amp HOT leads.
NOTE: because of the common neutral if you plug into a 30 amp outlet and, using the needed adapter into a 20 amp outlet.. POP goes the GFCI, if it does not, it is not working properly Yes I can design one that won't do this, but it is both HEAVY and Expensive