If you mean Groundon, then Groundon is in Magma Cavern, after passing 25 levels of magma cavern, and then 3 floors on magma cavern pit.
Rayquaza is on the 9th floor.
In Pokemon Mystery Dungeon: Red Rescue Team Latias is found after you complete the 25th floor of Pitfall valley.
floor number 5
floor 20 of solar cave
You have to get to floor 30 and then you battle.
30
you get it in Buried relic in floor 25
solar cave floor 20 its hard so bring i strong Pokemon
the 99th floor
then all your Pokemon will die
i think floor 30 or 45
floor 30 of solar cave