What would be best option/wire to run

Old house has 10/2 and 12/2 running from a junction box and switch to the outside detached garage. Wondering what the code is for this and what wire should be used? I can run a wire directly from the main panel but not underground since it’s all concrete.