This document presents the solution for Homework 8, a data structures assignment. The solution includes three main functions: `buy_book`, `setfbt`, and `display_fbt`. The `buy_book` function allows a user to select and add books to a linked list until they choose to stop. The `setfbt` function updates the 'frequently bought together' (FBT) list for each book purchased, though it does not consider the number of times books are bought. Finally, the `display_fbt` function prints the details of each book and its associated FBT list. The solution provides a clear implementation of these functions within the context of a book-buying scenario, demonstrating the use of linked lists and data structures for managing book information and purchase history. This solution is designed to help students understand and solve similar problems related to data structures and algorithms.