The #10 gauge wires will work perfectly well for 30 amps at 50 feet.
You might choose to put in 8 or even 6 gauge wires in case you might use a larger generator in the future. For those sizes the ground wire can still be #10.
The #12 wires will be fine for the 20 amp circuit. Again, you could use heavier wires and/or 3 wires on this circuit in case you may want to use more amperes or 240 volts out at the shed
You might choose to put in 8 or even 6 gauge wires in case you might use a larger generator in the future. For those sizes the ground wire can still be #10.
The #12 wires will be fine for the 20 amp circuit. Again, you could use heavier wires and/or 3 wires on this circuit in case you may want to use more amperes or 240 volts out at the shed