You will be given a definition of a task first, then some input of the task.
The task is to generate the correct answer for a given math problem.

Problem: in a photography exhibition , some photographs were taken by octavia the photographer , and some photographs were framed by jack the framer . jack had framed 24 photographs taken by octavia , and 12 photographs taken by other photographers . if 36 of the photographs in the exhibition were taken by octavia , how many photographs were either framed by jack or taken by octavia ?
Output:
48