/**
 * Given a list of photos and a list of selected photos, keep only the photos that exist in both lists.
 *
 * @param photoList A list containing the names of the photos.
 * @param selectedPhotos A list containing the names of the selected photos.
 * @return A new list with only the selected photos that exist in the original photoList.
 */
fun keepSelectedPhotos(photoList: List<String>, selectedPhotos: List<String>): List<String> {

    return photoList.filter { it in selectedPhotos }
}
/**
 * Given a list of photos and a list of selected photos, keep only the photos that exist in both lists.
 *
 * @param photoList A list containing the names of the photos.
 * @param selectedPhotos A list containing the names of the selected photos.
 * @return A new list with only the selected photos that exist in the original photoList.
 */
fun keepSelectedPhotos(photoList: List<String>, selectedPhotos: List<String>): List<String> {
/**
 * Given a list of photos and a list of selected photos, keep only the photos that exist in both lists.
 *
 * @param photoList A list containing the names of the photos.
 * @param selectedPhotos A list containing the names of the selected photos.
 * @return A new list with only the selected photos that exist in the original photoList.
 */
fun keepSelectedPhotos(photoList: List<String>, selectedPhotos: List<String>): List<String> {

    return photoList.filter { it in selectedPhotos }
}