She tried to get a job as a cook, but they had a cook, so the lady offered to hire her to help the cook as the undercook.
She attempted to find a job as a cook, but they already had a cook, so the lady offered her to assist the cook as an assistant cook.