How to generate a program in VisualG, which distributes and manages bank passwords [pendente]

I need to generate a program that distributes passwords for seniors, pf and pj
then call giving priority to the elderly> Pf> Pj
How can I order this call?