The Duke and Duchess of Sussex attended their last engagements during their visit to Australia.