When a fatherless child with a living mother that knows he was a firstborn but does not know whether his father did the Pidyon on him.
When an orphan whose both parents died when he was a toddler, does not know whether he was a firstborn AND whether his father did Pidyon.
Whet's the ruling Halachah in both cases?