@Lynne326
What version of MacOS are you running?
Click the Apple icon in the upper-left, and select "About this Mac". If you can, take a screen-shot and post it in a reply here.
Let's start with a view of what's running on the system, and the top users of CPU, when the fans are running.
Open Activity monitor and sort the process list by CPU%. The easiest way to open Activity monitor is to use Spotlight search (click on the little magnifying glass icon in the far-upper-right region of the screen, and then start typing "Activity monitor". It should bring up a results list with the Activity Monitor.app. Select the Activity Monitor.app.
Once the Activity Monitor app starts, click on the
CPU tab, and then click on the
% CPU column header (sorting the task list by % CPU, with the highest at the top of the list) see screen-shot below.
Take a screen-shot of the activity monitor and post it in a reply to this thread.